package day09.Shu;

import java.util.TreeSet;

public class Text {
    public static void main(String[] args) {
        TreeSet<Student>ts=new TreeSet<>();
        Student s1 = new Student("jack", 98, 100, 95);
        Student s2 = new Student("rose", 95, 95, 95);
        Student s3 = new Student("sam", 100, 93, 98);
        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        for (Student t : ts) {
            System.out.println(t);
        }
    }
}
